package com.biz.primus.ms.price.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntityPKIncrement;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.io.Serializable;

@Data
@Entity
@Table(name = "price", uniqueConstraints = {@UniqueConstraint(columnNames={"depotCode","productCode"})})
public class Price extends BaseEntityPKIncrement implements Serializable {

    @Column(length = 20,nullable = false)
    private String depotCode;

    @Column(length = 20,nullable = false)
    private String productCode;

    @Column
    private Integer goodsStatus;

    @Column
    private Integer retailPrice;

    @Column
    private Integer retailNormalPrice;

    @Column
    private Integer finalPrice;

    @Column
    private Integer normalPrice;

    @Column
    private Integer tradePrice;

    @Column
    private Integer tradeNormalPrice;

    @Column
    private Integer eWalletPrice;

    @Column
    private Integer fclSinglePrice;

}
